postcircumfix <>
1 | language documentation Operators |
1.1 | (Operators) postcircumfix <> |
Documentation for postcircumfix <>
assembled from the following types:
language documentation Operators
From Operators
(Operators) postcircumfix <>
Decontainerization operator, which extracts the value from a container and makes it independent of the container type.
use JSON::Tiny;my = from-json('{ "files": 3, "path": "/home/perl6/perl6.pod6" }');say .perl; # OUTPUT: «${:files(3), :path("/home/perl6/perl6.pod6")}»my = <>;say .perl; # OUTPUT: «{:files(3), :path("/home/perl6/perl6.pod6")}»
It's a Hash
in both cases, and it can be used like that; however, in the first case it was in item context, and in the second case it has been extracted to its proper context.